package com.github.icloudpay.crm.core.rest;

import com.github.wxiaoqi.security.common.rest.BaseController;
import com.github.icloudpay.crm.core.biz.OrderWithdrawBiz;
import com.github.icloudpay.crm.core.entity.OrderWithdraw;

import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * 提现记录
 * @author Administrator
 *
 */
@Controller
@RequestMapping("admin/orderWithdraw")
public class OrderWithdrawController extends BaseController<OrderWithdrawBiz,OrderWithdraw> {

	private static final Logger logger = LoggerFactory.getLogger(OrderWithdrawController.class);
	@Autowired
	private OrderWithdrawBiz withdrawBiz;
	
	
	/**
	 * 查询提现记录
	 * @param param
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value = "/getWithdrawRecord", method = RequestMethod.POST) 
	public Map<String, Object> getWithdrawRecord(Map<String, Object> param) {
		logger.info("查询提现记录，请求参数。。。{}"+param);
		Map<String, Object> respMap = withdrawBiz.queryWithdrawRecord(param);
		logger.info("查询提现记录，响应参数。。。{}"+respMap);
		return respMap;
	}
	
	
	/**
	 * 导出提现记录
	 * @param param
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value = "/exportWithdrawRecord", method = RequestMethod.POST) 
	public Map<String, Object> exportWithdrawRecord(Map<String, Object> param) {
		logger.info("导出提现记录，请求参数。。。{}"+param);
		Map<String, Object> respMap = withdrawBiz.queryWithdrawRecord(param);
		
		
		
		logger.info("导出提现记录，响应参数。。。{}"+respMap);
		return respMap;
	}
	
}